
/*
 * 图像预览
 * 图片放大、预览单图片与多图片
 * @param {Array} urls - 需要预览的图片链接列表
 * @param {Function} success - 成功回调
 * @param {Function} fail - 失败回调
 * @param {Function} complete - 结束回调
 * @return void
 */

function previewImg(urls = [], success, fail, complete){
	if(uni.previewImage != undefined || uni.previewImage != null){
		uni.previewImage({
		urls: urls,
			success: success,
			fail: fail,
			complete: complete
		})
	}else{
		return false;
	}
}

export default previewImg;